home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
CMPRComponent.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
3KB
|
116 lines
;
; File: CMPRComponent.a
;
; Contains: ColorSync ProfileResponder Components Interface
;
; Version: Technology: ColorSync 2.0
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__CMPRCOMPONENT__') = 'UNDEFINED' THEN
__CMPRCOMPONENT__ SET 1
IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
include 'Types.a'
ENDIF
IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
include 'Quickdraw.a'
ENDIF
IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
include 'Components.a'
ENDIF
IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
include 'CMApplication.a'
ENDIF
IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
CMPRInterfaceVersion EQU 0
; Component function selectors
kCMPRGetProfile EQU 0
kCMPRSetProfile EQU 1
kCMPRSetProfileDescription EQU 2
kCMPRGetIndexedProfile EQU 3
kCMPRDeleteDeviceProfile EQU 4
;
; pascal CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
;
IF ¨ GENERATINGCFM THEN
Macro
_CMGetProfile
move.l #$00080000,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION CMGetProfile
ENDIF
;
; pascal CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
;
IF ¨ GENERATINGCFM THEN
Macro
_CMSetProfile
move.l #$00040001,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION CMSetProfile
ENDIF
;
; pascal CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
;
IF ¨ GENERATINGCFM THEN
Macro
_CMSetProfileDescription
move.l #$00080002,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION CMSetProfileDescription
ENDIF
;
; pascal CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
;
IF ¨ GENERATINGCFM THEN
Macro
_CMGetIndexedProfile
move.l #$000C0003,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION CMGetIndexedProfile
ENDIF
;
; pascal CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
;
IF ¨ GENERATINGCFM THEN
Macro
_CMDeleteDeviceProfile
move.l #$00040004,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION CMDeleteDeviceProfile
ENDIF
ENDIF
ENDIF ; __CMPRCOMPONENT__